<?php
namespace Home\Model;use Think\Model\RelationModel;class OrderModel extends RelationModel {
	protected $_link = array(					'order_goods'=>array(  											'mapping_type'      =>self::HAS_MANY,   												'class_name'        => 'order_goods',   // 定义更多的关联属性 数据表												'mapping_name'  => 'goods_list',												'foreign_key'       => 'order_id',												//'condition'=>'goods_commend=1 AND goods_verify=1 AND goods_state=1',											   'as_fields' => 'order_id',				   ),					   		 
	);
			
}